<template>
  <div class="swiper-box">
    <!-- 轮播图 -->
    <div class="swiper">
      <van-swipe :autoplay="3000" :indicator-color="indicatorColor">
        <van-swipe-item v-for="(item, index) in swiperList" :key="index">
          <img :src="item.src" />
        </van-swipe-item>
      </van-swipe>
    </div>
  </div>
</template>

<script>
export default {
  props: ['swiperList', 'indicatorColor'],
  data() {
    return {}
  },
  created() {},
  methods: {}
}
</script>

<style lang="less" scoped>
.swiper {
  height: 230px;
  border: 1px solid #ccc;
  border-radius: 3px;
  .van-swipe {
    height: 100%;
    img {
      width: 200px;
      height: 200px;
      display: block;
      margin: auto;
    }
  }
}
</style>
